<!doctype html>
<html lang="en" class="orange-theme">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, viewport-fit=cover, user-scalable=no">
    <meta name="description" content="">
    <meta name="author" content="Maxartkiller">

    <title>首页 ·辰星中文网</title>

    <!-- iconfont CSS -->
    <link rel="stylesheet" href="/static/mobile/vendor/iconfont/iconfont.css">

    <!-- Roboto fonts CSS -->
    <link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" rel="stylesheet">

    <!-- Bootstrap core CSS -->
    <link href="/static/mobile/vendor/bootstrap-4.3.1/css/bootstrap.min.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="/static/mobile/css/style.css" rel="stylesheet">
</head>

<body>
<div class="wrapper">
    <div class="header">
        <div class="row no-gutters">
            <div class="col-auto">
                <img src="/static/mobile/img/logo_1.png" alt="" class="logo">
            </div>
            <!-- <div class="col text-center header-title">首页</div> -->
            <div class="col text-right">
                <a href="/mobile/search/index" class="btn btn-link text-dark">
                    <i class="iconfont icon-search"></i>
                </a>
                {if empty($member_id)}
                <a href="/mobile/login/login" class="btn btn-link text-dark">
                    <!-- 未登陆 -->
<!--                    <i class="iconfont icon-denglu"></i>-->
                    <i>登录</i>
<!--                    <span>立即登陆</span>-->
                </a>
                &nbsp;&nbsp;
                {else/}
                <a href="/mobile/personal/index" class="btn btn-link text-dark">
                    <!-- 已登陆 -->
                    <i class="iconfont icon-zhanghao"></i>
                </a>
                {/if}
            </div>
        </div>
    </div>
    <div class="container">
        <div id="main-banner" class="carousel slide main-carousel" data-ride="carousel">
            <ol class="carousel-indicators">
                {volist name="banner" id="k_banner"}
                <li data-target="#main-banner" data-slide-to="{$key}" {if $key eq 0} class="active" {else/}{/if}></li>
                {/volist}
                <!--<li data-target="#main-banner" data-slide-to="1"></li>
                <li data-target="#main-banner" data-slide-to="2"></li>-->
            </ol>
            <div class="carousel-inner">
                {volist name="banner" id="banner"}
                <div class="carousel-item active">
                    <a href="{$banner.target}">
                        <img src="{$banner.image}" class="d-block w-100" alt="...">
                    </a>
                </div>
                {/volist}
            </div>
        </div>
        <input type="text" class="form-control form-control-sm my-2 search" placeholder="书名 作者名">
        <nav class="d-flex justify-content-around list-content home-nav">
            <a class="guide-nav-a text-center" href="/mobile/book/bookStore">
                <i class="icon icon-store"></i>
                <h6 class="guide-nav-h ">书库</h6>
            </a>
            <a href="/mobile/book/girl" class="guide-nav-a text-center">
                <i class="icon icon-girl"></i>
                <h6 class="guide-nav-h ">女频</h6>
            </a>
            <a href="/mobile/book/recommend" class="guide-nav-a text-center">
                <i class="icon icon-rank"></i>
                <h6 class="guide-nav-h ">推荐</h6>
            </a>
            <a href="/mobile/welfare/index" class="guide-nav-a text-center">
                <i class="icon icon-fuli"></i>
                <h6 class="guide-nav-h ">福利</h6>
            </a>
        </nav>
        <!--***********************************精品推荐***********************************-->
        <div class="list-content">
            <h6 class="subtitle">精品推荐<a href="/mobile/book/moreBook/recommendation/1" class="float-right small text-secondary">更多</a></h6>
            <div class="d-flex justify-content-between flex-wrap">
                {volist name ="recommendation" id="recommendation" offset="0" length='9'}
                <a href="/mobile/book/bookInfo/id/{$recommendation.id}" class="w-30">
                    <div class="card shadow-sm border-0 mb-4">
                        <img class="w-100" src="{$recommendation.cover}" alt="...">
                        <div class="card-body">
                            <h6 class="text-overflow-elli">{$recommendation.name}</h6>
                            <p class="text-secondary small mb-2">{$recommendation.author}</p>
                        </div>
                    </div>
                </a>
                {/volist}
            </div>
        </div>
        <!--***********************************追更榜***********************************-->
        <div class="list-content">
            <h6 class="subtitle">追更榜<a href="/mobile/book/moreBook/more_list/1" class="float-right small text-secondary">更多</a></h6>
            <div>
                {volist name="moreList" id="moreList"  offset="0" length='4'}
                <a href="/mobile/book/bookInfo/id/{$moreList.id}">
                    <div class="media mt-3">
                        <img src="{$moreList.cover}" class="align-self-center mr-3 w-25" alt="...">
                        <div class="media-body">
                            <h6 class="mt-0"><b>{$moreList.name}</b></h6>
                            <p class="text-secondary small text-overflow-elli">{$moreList.descr | mb_substr=0,30}...</p >
                            <p class="mb-0 d-flex justify-content-between"><small>{$moreList.author} 著</small> <small class="text-secondary">{$moreList.cate_name}</small></p >
                        </div>
                    </div>
                </a>
                {/volist}
            </div>
        </div>

        <!--***********************************原创精品***********************************-->
        <div class="list-content">
            <h6 class="subtitle">原创精品<a href="/mobile/book/moreBook/original/1" class="float-right small text-secondary">更多</a></h6>
            <div class="d-flex justify-content-between flex-wrap">
                {volist name="original" id="original" offset="0" length='9'}
                <a href="/mobile/book/bookInfo/id/{$original.id}" class="w-30">
                    <div class="card shadow-sm border-0 mb-4">
                        <img class="w-100" src="{$original.cover}" alt="...">
                        <div class="card-body">
                            <h6 class="text-overflow-elli">{$original.name}</h6>
                            <p class="text-secondary small mb-2">{$original.author}</p>
                        </div>
                    </div>
                </a>
                {/volist}
            </div>
        </div>
        <!--***********************************新书榜***********************************-->
        <div class="list-content">
            <h6 class="subtitle">新书榜<a href="/mobile/book/moreBook/new_book/1" class="float-right small text-secondary">更多</a></h6>
            <div>
                {volist name="newBook" id="newBook"  offset="0" length='4'}
                <a href="/mobile/book/bookInfo/id/{$newBook.id}">
                    <div class="media mt-3">
                        <img src="{$newBook.cover}" class="align-self-center mr-3 w-25" alt="...">
                        <div class="media-body">
                            <h6 class="mt-0"><b>{$moreList.name}</b></h6>
                            <p class="text-secondary small text-overflow-elli">{$newBook.descr | mb_substr=0,30}...</p >
                            <p class="mb-0 d-flex justify-content-between"><small>{$newBook.author} 著</small><small class="text-secondary">{$newBook.cate_name}</small></p >
                        </div>
                    </div>
                </a>
                {/volist}
            </div>
        </div>

        <!--***********************************原创新书***********************************-->
        <div class="list-content">
            <h6 class="subtitle">原创新书<a href="/mobile/book/moreBook/original_new/1" class="float-right small text-secondary">更多</a></h6>
            <div class="d-flex justify-content-between flex-wrap">
                {volist name="originalNew" id="originalNew" offset="0" length='9'}
                <a href="/mobile/book/bookInfo/id/{$originalNew.id}" class="w-30">
                    <div class="card shadow-sm border-0 mb-4">
                        <img class="w-100" src="{$originalNew.cover}" alt="...">
                        <div class="card-body">
                            <h6 class="text-overflow-elli">{$originalNew.name}</h6>
                            <p class="text-secondary small mb-2">{$originalNew.author}</p>
                        </div>
                    </div>
                </a>
                {/volist}
            </div>
        </div>

        <!--***********************************新书入库***********************************-->
        <div class="list-content">
            <h6 class="subtitle">新书入库<a href="/mobile/book/moreBook/news/1" class="float-right small text-secondary">更多</a></h6>
            <div class="d-flex justify-content-between flex-wrap">
                {volist name="news" id="news" offset="0" length='9'}
                <a href="/mobile/book/bookInfo/id/{$news.id}" class="w-30">
                    <div class="card shadow-sm border-0 mb-4">
                        <img class="w-100" src="{$news.cover}" alt="...">
                        <div class="card-body">
                            <h6 class="text-overflow-elli">{$news.name}</h6>
                            <p class="text-secondary small mb-2">{$news.author}</p>
                        </div>
                    </div>
                </a>
                {/volist}
            </div>
        </div>
        <!--***********************************银票榜***********************************-->
        <div class="list-content last">
            <h6 class="subtitle">银票榜<a href="/mobile/book/moreBook/ticket_list/1" class="float-right small text-secondary">更多</a></h6>
            <div>
                {volist name="ticketList" id="ticketList"}
                <a href="/mobile/book/bookInfo/id/{$ticketList.id}">
                    <div class="media mt-3">
                        <img src="{$ticketList.cover}" class="align-self-center mr-3 w-25" alt="...">
                        <div class="media-body">
                            <h6 class="mt-0"><b>{$ticketList.name}</b></h6>
                            <p class="text-secondary small text-overflow-elli">{$ticketList.descr | mb_substr=0,30}...</p >
                            <p class="mb-0 d-flex justify-content-between"><small>{$ticketList.author} 著</small><small class="text-secondary">{$ticketList.cate_name}</small></p >
                        </div>
                    </div>
                </a>

                {/volist}
            </div>
        </div>

    </div>
</div>


<!-- jquery, popper and bootstrap js -->
<script src="/static/mobile/js/jquery-3.3.1.min.js"></script>
<script src="/static/mobile/vendor/bootstrap-4.3.1/js/bootstrap.min.js"></script>

<!-- template custom js -->
<script src="/static/mobile/js/main.js"></script>

<!-- page level script -->
<script>
    $(window).on('load', function() {
        $('#main-banner').carousel({
            interval: 3000
        })
    });
</script>
<script>
    $('.search').click(function(){
        window.location.href="/mobile/search/index";
    })
</script>

</body>

</html>
